package com.yulang.springbootnetty.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
 * <p>
 * 
 * </p>
 *
 * @author Administrator
 * @since 2020-06-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FriendsRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = ID, type = IdType.INPUT)
    private String id;

    @TableField(SEND_USER_ID)
    private String sendUserId;

    @TableField(ACCEPT_USER_ID)
    private String acceptUserId;

    @TableField(REQUEST_DATE_TIME)
    private Date requestDateTime;


    public static final String ID = "`id`";

    public static final String SEND_USER_ID = "`send_user_id`";

    public static final String ACCEPT_USER_ID = "`accept_user_id`";

    public static final String REQUEST_DATE_TIME = "`request_date_time`";


    public static final String ID_COMMENT = "";

    public static final String SEND_USER_ID_COMMENT = "";

    public static final String ACCEPT_USER_ID_COMMENT = "";

    public static final String REQUEST_DATE_TIME_COMMENT = "";



    public static FriendsRequest of(Object obj) {
        FriendsRequest e = new FriendsRequest();
        BeanUtils.copyProperties(obj, e);
        return e;
    }

    public static QueryWrapper<FriendsRequest> queryWrapper(Object obj) {
        return new QueryWrapper<>(of(obj));
    }

}
